package com.cn.hnust.service;

import org.apache.ibatis.annotations.Param;

import com.cn.hnust.pojo.Customer;

import java.util.List;

public interface ICustomerService {

    int insertCustomer(Customer customer);

    int updateCustomerById(Customer customer);

    List<Customer> selectAllCustomer(Customer customer);

    Customer checklogin(@Param("copenid") String copenid, @Param("cname")String cname, @Param("cpwd")String cpwd);

    List<Customer> selectCustomer(String cname);

    Customer selectCustomerByOpenid(String copenid);

    Customer selectCustomerById(Integer id);
    
    int updateByPrimaryKeySelective(Customer Customer);
    
    int insertSelective(Customer Customer);
    
    int deleteByPrimaryKey(Integer id);
}
